﻿using UnityEngine;
using System.Collections;

public class GameOverTrigger : MonoBehaviour {

	void Start() {

	}

	void OnTriggerEnter2D(Collider2D c) {
		if (GameManager.Instance.gameState == GameState.Over) return;
		if (c.tag == "Player") {
			GameManager.Instance.GameOver();
		}
	}
}
